﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Course.Models
{
  public   class RegisterModel
    {
        public enum Role
        {
            STUDENT,
            TEACHER
        }
        
        public string userId { get; set; }
        public int grade { get; set; }
        public int myClass { get; set; }
        public String userName { get; set; }
        public string password { get; set; }
        public string confirm { get; set; }
        public int eRole { get; set; }
        public Role role
        {
            get { return (Role)eRole; }
            set { eRole = (int)value; }
        }
    }
}
